#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File    :   genhash_test.py    
@Contact :   fengfeng.qiu@amh-group.com

@Modify Time      @Author    
------------      -------    
2022/1.csv/25 13:45   qiufengfeng
'''

from geohash_local import decode_exactly,encode

print(decode_exactly('wtx23kguwg5y'))
print(encode(31.008327500894666, 122.75568885728717,8))


from geohash2 import  encode as encode1
from geohash2 import decode_exactly as decode1
print(decode1('wtx23kguwg5y'))
print(encode1(31.008327500894666, 122.75568885728717,8))

from geolib.geohash import decode as decode2
from geolib.geohash import encode as encode2
print(decode2('wtx23kguwg5y'))
print(encode2(31.008327500894666, 122.75568885728717,8))